﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class teacher_changeTeacherInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string password = Request["teacher_pwd"].ToString().Trim();
        string sql = "update tb_teacher set teacher_pwd ='" + password + "' where teacher_id ='" + Session["teacher_id"] + "'";
        int k = SqlServer.ExecuteNonQuery(sql);
        if (k > 0)
        {
            Response.Write(k.ToString());
        }
        else
        {
            Response.Write("0");
        }
        Response.End();
    }
}